﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YTCMS.Domain.Entities
{
    [Table("guide")]
    public partial class guide
    {
        [Key]
        public int Id { get; set; }
        public string User { get; set; }
        public System.DateTime PushTime { get; set; }
        public string Remark { get; set; }
        public string Title { get; set; }
        public string Images { get; set; }
        public Nullable<int> CategoryId { get; set; }
        [ForeignKey("CategoryId")]
        public virtual category category { get; set; }
        [Required]
        public System.DateTime StartTime { get; set; }
        [RegularExpression(@"^\d+$", ErrorMessage = "请输入正确的数字！")]
        public Nullable<int> Day { get; set; }
        [RegularExpression(@"^(-)?(([1-9]{1}\d*)|([0]{1}))(\.(\d){1,2})?$", ErrorMessage = "请输入正确的金额！")]
        public Nullable<decimal> Money { get; set; }
        public string Object { get; set; }
        public string Tags { get; set; }

        public Nullable<int> IsPush { get; set; }
    }
}
